<!-- 
<?php echo $this->Form->create('Customer'); ?>
    
    <?php
        echo $this->Form->input('name');?>
    <?php    echo $this->Form->input('email');
        echo $this->Form->input('group_id');
        echo $this->Form->input('modifired');
        echo $this->Form->input('Email');
    ?>
    
<?php echo $this->Form->end(__('Submit')); ?>
 -->
<!--
<div class="actions">
    <h3><?php echo __('Actions'); ?></h3>
    <ul>

        <li><?php echo $this->Html->link(__('List Customers'), array('action' => 'index')); ?></li>
        <li><?php echo $this->Html->link(__('List Groups'), array('controller' => 'groups', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Group'), array('controller' => 'groups', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Emails'), array('controller' => 'emails', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Email'), array('controller' => 'emails', 'action' => 'add')); ?> </li>
    </ul>
</div> -->
<section id="content">
        <section class="main padder">
            <div class="clearfix">
                <h4><i class="fa fa-edit"></i>Form</h4>
            </div>
            <div class="row">
                <div class="col-sm-12">
                    <section class="panel">
                        <div class="panel-body">
                            
							<?php echo $this->Form->create('Customer',
								array('type' => 'post','class'=>'form-horizontal',
									'data-validate'=>'parsley')

							); ?>

                                <div class="form-group">
                                    <label class="col-lg-3 control-label">Email</label>
                                    <div class="col-lg-8">
                                        <?php echo $this->Form->input('email',
                                        	array('name'=>'email','placeholder'=>'test@example.com','class'=>'bg-focus form-control parsley-validated',
                                        		'data-required'=>'true','data-typ'=>'email','label' => false)
                                        );?>
                                        <?php     
if(isset($existedemail)) echo "<div style='color:red'>$existedemail</div>" ?>
                                    </div>

                                </div>
                                
                                <div class="form-group">
                                    <label class="col-lg-3 control-label">Username</label>
                                    <div class="col-lg-8">
                                        <?php echo $this->Form->input('name',
                                        	array('name'=>'name','placeholder'=>'Username','class'=>'form-control parsley-validated',
                                        		'data-required'=>'true','label' => false)
                                        );?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-3 control-label">Group</label>
                                    <div class="col-lg-4">
										<?php
											echo $this->Form->input('group_id',
												array('name'=>'group_id','class'=>'form-control','label' => false ) );
										?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-3 control-label">Registered</label>
                                    <div class="col-lg-9">
                                        <input type="text" class="combodate form-control" data-format="DD-MM-YYYY" data-template="D MMM YYYY" name="datetime" value="21-12-2012" style="display: none;"><span class="combodate">
<select class="day form-control" style="width: auto;">
<!-- <option value="">--Day--</option> -->
<?php
	for( $i=1; $i<32; $i++){
	?>
		<option value="<?php echo $i?>"><?php echo 	$i?></option>
	<?php 	
	}
 ?>
</select>&nbsp;
<select class="month form-control" style="width: auto;">
<!-- <option value="">--Month--</option> -->
<?php
	$month=array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
	for( $i=0; $i<12; $i++){
	?>
		<option value="<?php echo $i?>"><?php echo 	$month[$i]?></option>
	<?php 	
	}
 ?>
</select>&nbsp;
<select class="year form-control" style="width: auto;">
<!-- <option value="">--Year--</option> -->
<?php
	
	for( $i=date("Y"); $i>date("Y")-100; $i--){
	?>
		<option value="<?php echo $i?>"><?php echo $i?></option>
	<?php 	
	}
 ?>
</select>
                                    </div>
                                </div>
                                
                                <div class="form-group">
                                    <div class="col-lg-9 col-lg-offset-3">
                                       
                                       <?php echo $this->Form->end(
		                                	array('class'=>'btn btn-primary','label' => 'Save changes','div' =>false
		                                		)
		                                ); ?>

                                    </div>

                                </div>
                                 
                           
                        </div>
                    </section>
                    
                </div>
                 
            </div>
        </section>
    </section>
